package com.tanggh.tag;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.UIBean;

import com.opensymphony.xwork2.util.ValueStack;
import com.tanggh.util.Tools;

public class HeadBean extends UIBean {
	
	private String title;
	private String description;
	private String keywords;
	

	public HeadBean(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
		super(stack, request, response);
		
	}

	@Override
	protected String getDefaultTemplate() {
		return "head";
	}

	@Override
	protected void evaluateExtraParams() {
		super.evaluateExtraParams();
		addParameter("title", getTitle());
		addParameter("description", getDescription());
		addParameter("keywords", getKeywords());
	}
	
	//----getter  setter
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	
	
	
}
